package com.hdaccp.letting.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.hdaccp.letting.bean.User;
import com.hdaccp.letting.service.UserService;
import com.hdaccp.letting.util.UserUtil;

import java.util.List;
public class UserServiceImpl implements UserService {
    @Override
    public User getUser(int id) {
        User u = null ;
        List<User> list  = UserUtil.query() ;
        for(User user:list){
            if(user.getId() == id){
                u = user ;
                break;
            }
        }

        System.out.println("usersevice1...");
        return u;
    }
}
